{% extends "base.html" %}

{% block content %}
		
		<table class="imageText" style="border:1px;border-color: red">
			<tr>
				<td width="50%" >
					{{music}}
					{% if room.get_image %}
					<img src="images/{{room.get_image}}" class="imagebag" />
					{% endif %}
				</td>
				<td class="imageTextDescription" width="60%" colspan="2">
					{% if cutscene %}
					<p>{{cutscene}}</p>
					{% endif %}
					<p>{{room.get_description}}</p>
					
				</td>
			</tr>
			<tr>
				<td colspan="3">
					<table class="imageText" style="border:1px;border-color: red">
						<tr>
							<td colspan="1" width="33%" class="imageTable1">
								
								{% if room.inventory %}
								<p>You see some stuff in this room:</p>
								<form action="{{this_page}}" method="post">
								{% for item in room.inventory.values %}
								<div><input type="checkbox" name="room_inventory" value="{{item.get_id}}"/>{{item.get_description}}</div>
								{% endfor %}
								<div><input type="submit" name="inventory" value="Take item(s)"/></div>
								</form>
								{% else %}
								<p>You don't see anything interesting lying around.</p>
								{% endif %}
								
							</td>
							<td colspan="1" width="33%" class="imageTable2">
								
								<p>Your inventory:</p>
								{% if player.inventory %}
								<form action="{{this_page}}" method="post">
								{% for item in player.inventory.values %}
								<div><input type="checkbox" name="player_inventory" value="{{item.get_id}}"/>{{item.get_description}}</div>
								{% endfor %}
								<div><input type="submit" name="inventory" value="Drop item(s)"/></div>
								</form>
								{% else %}
								<p>You are not carrying anything.</p>
								{% endif %}
								
							</td>
							<td colspan="1" width="33%" class="imageTable3">
								
								<p>Things you can do:</p>
								{% for action in menu.actions.values %}
								<div class="action_form">
								<form action="{{this_page}}" method="{{action.get_method}}">
								      <input type="hidden" name="action_name" value="{{action.get_id}}" />
								      <input type="submit" name="action" value="{{action.get_description}}"/>
								</form>
								</div>
								{% endfor %}
								
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		
{% endblock content %}
